﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>E8企业网站管理系统v2.4.0.0</title>
        <script src="/static/bk/js/jquery.min.1.8.2.js" type="text/javascript"></script>
        <script src="/static/bk/js//web.js" type="text/javascript"></script> 
        <link href="/static/bk/css/admin_layout.css" rel="stylesheet" type="text/css" />        
        <script type="text/javascript">
            if (top.location !== self.location) {
                top.location = self.location;
            }
        </script>
    </head>
    <body>
        <div id="wapper">
            <div id="header" class="header">
                <div class="tips">
                    <h1>E8企业网站管理系统</h1>
                </div>
                <div class="hd_tools clearfix">
                    <div class="hd_liks">
                        <ul>
                            <li class="hd_links_item" id="navbox"><a href="/" target="_blank" class="ha_links_a">浏览站点<span class="caret"></span></a>
                                <ul>

                                    <li><a href="/" target="_blank">简体中文版</a></li>

                                </ul>
                            </li>
                        </ul>
                    </div>
                    <div class="hd_info">
                        <ul>
                            <li>
                                尊敬的<?php echo $this->session->userdata['user_name'];?>,下午好!&nbsp;&nbsp;
                                <?php 
                                if(!empty($groupname)){
                                ?>
                                所属管理组：
                                <?php 
                                echo $groupname['rolename'];
                                ?>
                                <?php }?>
                            </li>
                            <!-- <li><a href="#" target="MainFrm">清除缓存</a></li> -->
                            <li><a href="<?php echo site_url('main/resetpassword');?>" target="MainFrm">修改密码</a></li>
                            <li><a href="<?php echo b_url('login/logout');?>" target="_top">注销</a></li>
                        </ul>
                    </div>
                </div>
                <div class="hd_nav">
                    <h2 class="logo">
                        <img src="/static/bk/images/logo.png" /></h2>
                    <div class="hd_menu">
                        <ul>
                            <?php foreach($info as $k=>$v) :?>
                            <li class="hd_menu_item <?php if($k ==0){echo 'current';}?>"><a href="javascript:void(0);"><?php echo $v['modulename']?></a></li>
                            <?php endforeach ; ?>
                        </ul>
                    </div>
                </div>
            </div>
            <div class="container">
                <div class="left_menu" id="leftnav">
                    <?php foreach($info as $ks=>$vs) :?>
                    <ul>
                        <?php 
                        if(!empty($vs['children'])){
                            foreach ($vs['children'] as $key => $value) {
                        ?>
                        <li><a href="<?php echo site_url($value['moduleurl'])?>" target="MainFrm"><?php echo $value['modulename']?></a></li>
                        <?php 
                            }
                        }
                        ?>
                    </ul>
                    <?php endforeach ; ?>
                </div>
                <div class="content">
                    <iframe id="MainFrm" name="MainFrm" src="<?php echo b_url('main/welcome');?>" frameborder="0" scrolling="auto" width="100%" height="auto" allowtransparency="true"></iframe>
                </div>
            </div>
        </div>
        <script language="javascript" type="text/javascript">
            /****************************************************/
            if (!Array.prototype.map)
                Array.prototype.map = function(fn, scope) {
                    var result = [], ri = 0;
                    for (var i = 0, n = this.length; i < n; i++) {
                        if (i in this) {
                            result[ri++] = fn.call(scope, this[i], i, this);
                        }
                    }
                    return result;
                };

            var getWindowWH = function() {
                return ["Height", "Width"].map(function(name) {
                    return window["inner" + name] ||
                            document.compatMode === "CSS1Compat" && document.documentElement["client" + name] || document.body["client" + name]
                });
            }
            window.onload = function() {
                if (!+"\v1" && !document.querySelector) { //IE6 IE7
                    document.body.onresize = resize;
                } else {
                    window.onresize = resize;
                }
                function resize() {
                    return false;
                }
            }
        </script>
    </body>
</html>
